﻿using System.Collections.Generic;
using FileSecurityManager.BizEntities;

namespace FileSecurityManager.DataAccess.Interfaces
{
    public interface IUserRepository : IRepository<UserModel>
    {
        /// <summary>
        /// Gets the users by role.
        /// </summary>
        /// <param name="roleModel">The role model.</param>
        /// <returns>Users according to role</returns>
        List<UserModel> GetUsersByRole(RoleModel roleModel);

        /// <summary>
        /// Deletes the user role.
        /// </summary>
        /// <param name="userName">Name of the user.</param>
        void DeleteUserRole(string userName);
    }
}
